﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import Message.Public.*;

    public class STaskChapter extends IMessageBase
    {
        public var finishChapter:Array;
        public var finishTaskNum:int;
        public const _type:int = 16010;
        public static var _regist:STaskChapter = new STaskChapter(true);

        public function STaskChapter(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new STaskChapter();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            SeqIntHelper.write(param1, this.finishChapter);
            param1.writeInt(this.finishTaskNum);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.finishChapter = SeqIntHelper.read(param1);
            this.finishTaskNum = param1.readInt();
            return;
        }// end function

    }
}
